package com.joseph.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.joseph.base.BaseDto;
import com.joseph.base.BaseService;
import com.joseph.dao.ProductDao;
import com.joseph.model.Product;

/**
 * @description 
 * @author Joseph_Mok
 * @date 2016年1月21日下午6:05:26
 */

@Service
public class ProductService extends BaseService <Product> {

	@Resource
	private ProductDao productDao;

	@Override
	public List <Product> findAll() {
		return productDao.getAll();
	}

	@Override
	public Product findById(Long id) {
		return productDao.getById(id);
	}

	public List <Product> getByIds(BaseDto dto) {
		return productDao.getByIds(dto);
	}
}
